#!/usr/bin/env bash
function foo(){
	while [[ "$#" -gt 0 ]]
	do
		case "$1" in
			-f|--follow)
				local FOLLOW="follow=$2"
				;;
			-t|--tail)
				local TAIL="tail=$2"
				;;
			*)
				echo "neither f nor t."
		esac
		shift 2
	done
	echo "FOLLOW: $FOLLOW"
	echo "TAIL: $TAIL"
}
